package com.cheejee.goodscenter.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cheejee.goodscenter.module.entity.Category;

@Mapper
public interface CategoryMapper {
	int deleteByPrimaryKey(Integer id);

//	int insert(Category record);

	int insertSelective(Category record);

	Category selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(Category record);

//	int updateByPrimaryKey(Category record);

	// ################ 以上为mybatis generator生成 #####################
	
	List<Category> selectBySelective(
			@Param("parentId")Integer parentId, 
			@Param("name")String name, 
			@Param("level")Byte level);
	
	int deleteById(@Param("id")Integer...id);
}